package com.blog.service.Impl;

import com.blog.dao.ViewsMapper;
import com.blog.pojo.Views;
import com.blog.service.ViewsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-04-25 16:01
 * FileName: ViewsServiceImpl
 * Description: 博客浏览量业务层
 */
@Service
public class ViewsServiceImpl implements ViewsService {
    @Resource
    private ViewsMapper mapper;

    @Override
    public void addViews(Views views) {
        mapper.insert(views);
    }
}
